package com.example.dao;

import java.io.Serializable;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.example.entity.User;

@Repository
public class UserDao extends HibernateDaoSupport {
	public Serializable save(User user) {
		HibernateTemplate template = this.getHibernateTemplate();
		Serializable save = template.save(user);
		return save;
	}
}